using PrimeTween;
using UnityEngine;

namespace Locomotion
{
    public class CharacterAnimator : MonoBehaviour
    {
        public void Stretch()
        {
            Tween.ScaleY(transform, 1.2f, 0.2f, Ease.OutExpo)
                .Chain(Tween.ScaleY(transform, 1f, 0.2f));
        }

        public void Compress()
        {
            Tween.ScaleY(transform, 0.8f, 0.2f, Ease.OutExpo)
                .Chain(Tween.ScaleY(transform, 1f, 0.2f));
        }
    }
}
